package itsm.isperp.module.entity.configuration;

import itsm.isperp.framework.domain.IBean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 
 * 分类属性
 * 
 * @author lizx
 * @date 2013-4-29
 */
@Entity
@Table(name = "conf_category_property")
public class ConfCategoryProperty implements IBean {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
	protected String id;

	@Column
	protected String confCategoryId;

	@Column
	protected String name;
	@Column
	protected String items;
	@Column
	protected String defaultValue;
	@Column
	protected boolean notnull;
	@Column
	protected String regex;
	@Column
	protected int orderNum;
	@Column
	protected String dataType;
	
	@Column
	protected String validateExp;
	
	@Column
	protected String validateDesc;

	@Override
	public String getId() {
		return id;
	}

	public String getConfCategoryId() {
		return confCategoryId;
	}

	public String getName() {
		return name;
	}

	public String getItems() {
		return items;
	}

	public String getDefaultValue() {
		return defaultValue;
	}

	public boolean isNotnull() {
		return notnull;
	}

	public String getRegex() {
		return regex;
	}

	public int getOrderNum() {
		return orderNum;
	}

	public String getDataType() {
		return dataType;
	}
	public String getValidateExp() {
		return this.validateExp;
	}
	public String getValidateDesc() {
		return this.validateDesc;
	}

	@Override
	public void setId(String id) {
		this.id = id;
	}

	public void setConfCategoryId(String confCategoryId) {
		this.confCategoryId = confCategoryId;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setItems(String items) {
		this.items = items;
	}

	public void setDefaultValue(String defaultValue) {
		this.defaultValue = defaultValue;
	}

	public void setNotnull(boolean notnull) {
		this.notnull = notnull;
	}

	public void setRegex(String regex) {
		this.regex = regex;
	}

	public void setOrderNum(int orderNum) {
		this.orderNum = orderNum;
	}

	public void setDataType(String dataType) {
		this.dataType = dataType;
	}
	public void setValidateExp(String validateExp) {
		this.validateExp = validateExp;
	}
	public void setvalidateDesc(String validateDesc) {
		this.validateDesc = validateDesc;
	}

}
